package com.deyuanyun.pic.pbf.app.service;

import com.deyuanyun.pic.pbf.app.domain.PbfLoginLog;
import com.deyuanyun.pic.pbf.app.domain.PbfResult;
import com.deyuanyun.pic.settings.service.msgtemplate.ParamName;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @author Jerry
 * @date 2016-06-15
 */
@Service
public interface PbfService {

    public List<Map<String,Object>> testSelect();


    /**
     * 缺陷维修登录getUserName
     * @param account
     * @return
     */
    public PbfResult getUserName(String account) throws Exception;

    /**
     * 缺陷维修登录
     * @param Param
     * @return
     * @throws Exception
     */
    public PbfResult login(String Param) throws Exception;

    /**
     * catch异常注入日志信息
     * @param pbfLoginLog
     */
    public void insertErrLog(PbfLoginLog pbfLoginLog);

    /**
     * 根据用户id判断是否有该用户
     * @param userId
     * @return
     */
    public Map<String,Object> findUserId(String userId);

    /**
     *获取维修维护项目列表
     * @return
     */
    public Map<String,Object> getProjects(String param) throws Exception;

    /**
     *获取缺陷点列表
     * @param param
     * @return
     * @throws Exception
     */
    public Map<String,Object> findDefectList(String param) throws Exception;

    /**
     * insert缺陷数据（App端提供数据)
     * @param Param
     */
    public void addorUpdatePipeBodyDefect(String Param) throws Exception;

    /**
     * delete非内检数据
     * @param Param
     * @return
     */
    public PbfResult delPipeBodyDefect(String Param);

    /**
     * 获取配置
     * @return
     */
    public Map<String,Object> getConfigs() throws Exception;

    /**
     * 提交表单
     * @throws Exception
     */
    public void postForm(@ParamName("Param") String Param) throws  Exception;

    /**
     * 通过节点id查找对应的表名
     * @param id
     * @return
     * @throws Exception
     */
    public String findTabNameByNodeId(String id);












}